package ooday02;

public class ExtendsTest{
    public static void main(String[] args) {
        Student zs=  new Student("张三",18,"太原","jsd2212","001");
        zs.eat();
        zs.study();
        zs.sleep();

        Doctor ls = new Doctor("李四",18,"太原","护士");
        ls.name = "李四";
        ls.age = 18;
        ls.address="太原";
        ls.title = "护士";
        ls.sayHi();
        ls.cut();
        ls.eat();

        Teacher xf =new Teacher("zorvfn",25,"太原",20000.88);
        xf.name = "zorvfn";
        xf.age=25;
        xf.address="太原";
        xf.Salary = 200000.88;
        xf.teach();
    }
}
